﻿using GalaSoft.MvvmLight;
using LiveCharts;
using LiveCharts.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CMS.ViewModel
{
    public class IndexViewModel:ViewModelBase
    {
        public IndexViewModel()
        {
            
        }
        private List<string> cargoLabels=new List<string>();
        /// <summary>
        /// 物资的x轴标签
        /// </summary>
        public List<string> CargoLabels
        {
            get { return cargoLabels; }
            set { cargoLabels = value;RaisePropertyChanged(nameof(CargoLabels));}  
         }
        private IChartValues cargoChartValues=new ChartValues<double>();
        /// <summary>
        /// 物资的报表值
        /// </summary>
        public IChartValues CargoChartValues
        {
            get { return cargoChartValues; }
            set { cargoChartValues = value; RaisePropertyChanged(nameof(CargoChartValues)); }
        }
        /// <summary>
        /// 饼图
        /// </summary>
        public SeriesCollection PieSeries { get; set; }=new SeriesCollection(); //实例化
        private List<string> memberLabels = new List<string>();
        /// <summary>
        /// 用户操作流水数据的报表值X轴标签
        /// </summary>
        public List<string> MemberLabels
        {
            get { return memberLabels; }
            set { memberLabels = value; RaisePropertyChanged(nameof(MemberLabels)); }
        }
        private IChartValues menberChartValues = new ChartValues<int>();
        /// <summary>
        /// 用户操作流水数据的报表值
        /// </summary>
        public IChartValues MenberChartValues
        {
            get { return menberChartValues; }
            set { menberChartValues = value; RaisePropertyChanged(nameof(MenberChartValues)); }
        }
        /// <summary>
        /// 曲线报表
        /// </summary>
        public SeriesCollection LineSeries { get; set; }=new SeriesCollection();
        /// <summary>
        /// 曲线报表的标签
        /// </summary>
        public AxesCollection LineAxis { get; set; }=new AxesCollection();
    }
}
